.box {
    width: 100px;
    height: 0;
    background-color: lightblue;
    transition: height 0.3s ease;
    overflow: hidden;
}

.box.open {
    height: 100px;
}